# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-urwidgets
_pyname=urwidgets
pkgver=0.2.1
pkgrel=0
pkgdesc="A collection of widgets for urwid"
url="https://github.com/AnonymouX47/urwidgets"
arch="noarch"
license="MIT"
depends="py3-urwid"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/AnonymouX47/urwidgets/archive/v$pkgver/py3-urwidgets-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
6a22b5bc37531329081cfac00b4b2cd8587c0e1ed08b46a304c119b59e177ee8550218f93704ad4aedd0c82d8f4c62a6bd9bee52f77a0beb287765404e1a91b9  urwidgets-0.2.1.tar.gz
"
